﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PefStudio.StartUp;

namespace PefStudio.Windows
{
    public partial class AbstractFloatDocument : AbstractDocument
    {
        public AbstractFloatDocument()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            try
            {
                var tabContextMenuItems = Bootstrapper.Container.GetExportedValues<IMenuItem>(DockTabContextMenuContract);
                TabPageContextMenuStrip = new ContextMenuStrip();
                CreateService.CreateMenu(TabPageContextMenuStrip, tabContextMenuItems, this);
            }
            catch
            {
            }
        }
    }
}
